/**
 *  Copyright 2009-2010 Steven Ottenhoff (Dual-IT)
 * 
 *  This file is part of Clazzified.
 *
 *  Clazzified is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Clazzified is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Clazzified.  If not, see http://www.gnu.org/licenses/gpl.
 * 
 */
package nl.dualit.clazzified.store;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import nl.dualit.clazzified.store.clazz.ConstraintFields;
import nl.dualit.clazzified.store.clazz.AttributeFields;
import nl.dualit.clazzified.store.clazz.ClazzFields;
import nl.dualit.clazzified.store.clazz.ManipulationFields;
import nl.dualit.clazzified.store.clazz.RelationFields;

/**
 * Represents a clazz and all its attributes, constraints, relations and manipulations.
 * This class is used to transfer formatted clazz data between store layer and core layer.
 * 
 * @author Steven Ottenhoff
 *
 */
public class ClazzData {

	private Map<ClazzFields,String> clazzData;
	private List<AttributeData> attributeData;;
	private List<RelationData> relationData;
	private List<Map<ManipulationFields,String>> manipulationData;

	public Map<ClazzFields, String> getClazzData() {
		
		if( clazzData == null )
			clazzData = new HashMap<ClazzFields,String>();
		return clazzData;
	
	}

	public void setClazzData(Map<ClazzFields, String> clazzData) {
		
		this.clazzData = clazzData;
	
	}

	public List<AttributeData> getAttributeData() {
		
		if( attributeData == null )
			attributeData =  new ArrayList<AttributeData>();
		
		return attributeData;
	
	}
	
	public void setAttributeData( List<AttributeData> attributeData) {

		this.attributeData = attributeData;
	}

	public List<RelationData> getRelationData() {
	
		if( relationData == null )
			relationData = new ArrayList<RelationData>();
		
		return relationData;
	
	}

	public void setRelationData(List<RelationData> relationData) {
	
		this.relationData = relationData;
	
	}

	public List<Map<ManipulationFields, String>> getManipulationData() {
		
		if( manipulationData == null )
			manipulationData = new ArrayList<Map<ManipulationFields,String>>();
		return manipulationData;
	
	}

	public void setManipulationData(List<Map<ManipulationFields, String>> manipulationData) {
		
		this.manipulationData = manipulationData;
	
	}

	
	
}
